package com.aaa.day1104.demo1;

import java.util.function.BiPredicate;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月04日10:03
 */
public class Test3 {
    public static void main(String[] args) {

        BiPredicate<String,String> biPredicate=(b1,b2)->b1.equals(b2);
        BiPredicate<String,String> Predicate=String::equals;
        boolean test2=Predicate.test("aaa","aaa");
        System.out.println("test2 = " + test2);

        boolean test=biPredicate.test("aaa","bbb");
        System.out.println("test = " + test);
    }
}
